package com.glx.test.dao;

import com.glx.test.pojo.Problem;
import com.glx.test.pojo.Submission;
import com.glx.test.pojo.TestCase;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProblemMapper {
    int insertProblem (Problem problem) ;
    int insertTestCase(TestCase testCase);
    List<Problem> getProblemList();
    Problem getProblemById(Long id);
    TestCase getTestCaseByProblemId(Long Problem_id);
    int insert(Submission submission);
    List<Submission> getSubmissionByUserId(Long user_id);
    List<Submission> getSubmissionByProblemId(Long problem_id);
    List<Submission> getFiveSubmissionByUserId(Long user_id);
}
